package com.pattern.factory.simplefactory;
/*
* 简单工厂类
* */
public class GameFactory {
    public IGame create(Class<? extends IGame> clazz){
        try {
            if(null != clazz) {
                return clazz.newInstance();
            }
        }catch (Exception e){

        }
        return null;
    }
}
